package cn.fsd.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Commodity {

    /**
     * 商品id
     */
    private String commodity_id;

    /**
     * 商品代码
     */
    private String commodity_code;

    /**
     * 商品名
     */
    private String commodity_name;

    /**
     * 商品一级分类名称
     */
    private String first_class;

    /**
     * 商品二级分类名称
     */
    private String second_class;

    /**
     * 商品计量单位
     */
    private String measure_unit;

    /**
     * 商品原价
     */
    private Long original_price;

    /**
     * 折扣
     */
    private Long discount;

    /**
     * 成本价
     */
    private Long cost;

    /**
     * 商品型号
     */
    private String model_code;

    /**
     * 商品供应商
     */
    private String supplier;

    /**
     * 是否可退货
     */
    private Integer returnable;

    /**
     * 是否可换货
     */
    private Integer replaceable;

    /**
     * 商品备注
     */
    private String remarks;

    public String getCommodity_id() {
        return commodity_id;
    }

    public void setCommodity_id(String commodity_id) {
        this.commodity_id = commodity_id == null ? null : commodity_id.trim();
    }

    public String getCommodity_code() {
        return commodity_code;
    }

    public void setCommodity_code(String commodity_code) {
        this.commodity_code = commodity_code == null ? null : commodity_code.trim();
    }

    public String getCommodity_name() {
        return commodity_name;
    }

    public void setCommodity_name(String commodity_name) {
        this.commodity_name = commodity_name == null ? null : commodity_name.trim();
    }

    public String getFirst_class() {
        return first_class;
    }

    public void setFirst_class(String first_class) {
        this.first_class = first_class == null ? null : first_class.trim();
    }

    public String getSecond_class() {
        return second_class;
    }

    public void setSecond_class(String second_class) {
        this.second_class = second_class == null ? null : second_class.trim();
    }

    public String getMeasure_unit() {
        return measure_unit;
    }

    public void setMeasure_unit(String measure_unit) {
        this.measure_unit = measure_unit == null ? null : measure_unit.trim();
    }

    public Long getOriginal_price() {
        return original_price;
    }

    public void setOriginal_price(Long original_price) {
        this.original_price = original_price;
    }

    public Long getDiscount() {
        return discount;
    }

    public void setDiscount(Long discount) {
        this.discount = discount;
    }

    public Long getCost() {
        return cost;
    }

    public void setCost(Long cost) {
        this.cost = cost;
    }

    public String getModel_code() {
        return model_code;
    }

    public void setModel_code(String model_code) {
        this.model_code = model_code == null ? null : model_code.trim();
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier == null ? null : supplier.trim();
    }

    public Integer getReturnable() {
        return returnable;
    }

    public void setReturnable(Integer returnable) {
        this.returnable = returnable;
    }

    public Integer getReplaceable() {
        return replaceable;
    }

    public void setReplaceable(Integer replaceable) {
        this.replaceable = replaceable;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }
}